#!/usr/bin/env bash
# ******************************************************
# Filename     : rabbitmq-3910-install.sh
# Last modified: 2023-03-26 12:18
# Version      :
# Author       : jack.zang
# Email        : jack_zang@126.com
# Description  :
# curl -sfL https://gitee.com/jack_zang/public-scripts/raw/master/shell/rabbitmq/rabbitmq-3910-install.sh | MQ_USER="admin";MQ_PASS="Xiodi.cn123" sh -s -
#
# ******************************************************
mkdir /data/rabbitmq3910 -pv
docker run -d -v /data/rabbitmq3910:/var/lib/rabbitmq --hostname rabbitmq \
    --restart=always --name rabbitmq -e RABBITMQ_DEFAULT_USER=admin \
    -e RABBITMQ_DEFAULT_PASS=Xiodi.cn123 -e RABBITMQ_DEFAULT_VHOST=rabbitmq-default \
    -p 15672:15672 -p 5672:5672 -p 61613:61613 -p 15674:15674 rabbitmq:3.9.10-management
